package com.iven.xie.code.generator.service;

import com.iven.xie.code.generator.bean.PageList;
import com.iven.xie.code.generator.bean.QueryBean;

import java.util.List;
import java.util.Map;

/**
 * 代码生成器
 *
 * @author iven.xie
 */
public interface CodeGeneratorService {

    /**
     * 查询列表数据
     *
     * @param queryBean
     * @return
     */
    PageList queryList(QueryBean queryBean);

    Map<String, String> queryTable(String tableName);

    List<Map<String, String>> queryColumns(String tableName);

    /**
     * 生成代码
     *
     * @param tableNames
     * @return
     */
    byte[] generatorCode(String[] tableNames);
}
